<!DOCTYPE html>
	<html lang="es">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<script src="http://code.jquery.com/jquery-1.8.3.js"></script>
	</head>
	<body>
	<?php
	$username = array('name' => 'username', 'placeholder' => 'Usuario');
	$password = array('name' => 'password',	'placeholder' => 'Password');
	$submit = array('name' => 'submit', 'value' => 'Iniciar sesión', 'title' => 'Iniciar sesión');
	?>
		<h1>Formulario de login</h1>
		<p><?=form_open(base_url().'login/reintentar')?>
		<label for="username">Usuario:</label>
		<?=form_input($username)?><p><?=form_error('username')?></p>
		<label for="password">Password:</label>
		<?=form_password($password)?><p><?=form_error('password')?></p>
		<?=form_hidden('token', $token)?>
		<?=form_submit($submit)?>
		<?=form_close()?>
		<?php 
		if($this->session->flashdata('usuario_incorrecto'))
		{
		?>
		<p><?=$this->session->flashdata('usuario_incorrecto')?></p>
		<?php
		}
		?>
	</body>
</html>
